<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sj:head jqueryui="true" jquerytheme="redmond"></sj:head>
<script type="text/javascript">
	function onClickCreate() {
		window.location = "programmeCreateAction.action";
	}
	function onClickSearch(){
		window.location = "programmeSearchAction.action";
	}
</script>
</head>
<body>
	<h3>Programme List</h3>
	<s:form theme="simple">
		<tr>
			<td><s:select name="filter" onchange="onClickSearch()"
					list="#{'0':'0-9','A':'A B C D E','F':'F G H I J','K':'K L M N','O':'O P Q R','S':'S T U V','W':'W X Y Z'}"
					headerKey="" headerValue="All">

				</s:select></td>


			<td><sj:a button="true" onclick="onClickCreate()">Create</sj:a>
			</td>
			<td><s:checkbox name="includeInactive" onclick="onClickSearch()"> Include In-active </s:checkbox>
			</td>
		</tr>
		<br>
		<s:url id="getProgrammeUrl" action="getProgrammeAction" />
		<sjg:grid id="gridtable" caption="Customer Examples" dataType="json"
			href="%{getProgrammeUrl}" pager="true" gridModel="gridModel"
			rowNum="15" rownumbers="true">
			<sjg:gridColumn name="programmeName" index="programmeName"
				title="Programme Name" sortable="false" />
			<sjg:gridColumn name="description" index="description"
				title="Description" sortable="false" />
			<sjg:gridColumn name="contactID" index="contactID" title="Contact"
				sortable="false" />
			<sjg:gridColumn name="isActive" index="isActive" title="Is Active?"
				sortable="false" formatter="checkbox" />
		</sjg:grid>
	</s:form>
</body>
</html>